﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Reportes_FrListaReportes : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["nit"] != null)
            Response.Redirect("/SUEWebSite/Error.aspx");
        else if (Session["nomUsr"] != null)
        {
            List<String> Permisos = (List<String>)Session["Permisos"];

            if (!Permisos.Contains(System.IO.Path.GetFileName(HttpContext.Current.Request.FilePath)))
                Response.Redirect("/SUEWebSite/Error.aspx");
            
        }
        else Response.Redirect("/SUEWebSite/Principal.aspx");

    }
    protected void ButtonRepEmpresa_Click(object sender, EventArgs e)
    {
        Response.Redirect("FrResultadoReporte.aspx?Reporte="+DropDownListRepEmpresa.SelectedItem.Value);
    }
    protected void ButtonRepPracticante_Click(object sender, EventArgs e)
    {
        Response.Redirect("FrResultadoReporte.aspx?Reporte=" + DropDownListRepPracticante.SelectedItem.Value);
    }
    protected void ButtonRepConvenio_Click(object sender, EventArgs e)
    {
        Response.Redirect("FrResultadoReporte.aspx?Reporte=" + DropDownListRepConvenio.SelectedItem.Value);
    }
}
